<!-- 分红融资 -->
<template>
  <div class="profit">
    <!-- 分红情况 -->
    <yn-com-comTitle name="分红情况"></yn-com-comTitle>
    <yn-prof-profit :data="profitData"></yn-prof-profit>
    <!-- 增发机构获配明细 -->
    <yn-com-comTitle class="mt15" name="增发机构获配明细"></yn-com-comTitle>
    <yn-prof-org :data="org"></yn-prof-org>
    <!-- 增发明细 -->
    <!-- <yn-com-comTitle class="mt15" name="增发明细"></yn-com-comTitle> -->
    <!-- <yn-prof-incr :data="incr"></yn-prof-incr> -->
    <!-- 配股明细 -->
    <!-- <yn-com-comTitle class="mt15" name="配股明细"></yn-com-comTitle> -->
    <!-- <yn-prof-allot :data="allot"></yn-prof-allot> -->
  </div>
</template>

<script>
import { profit } from "../script/api";

export default {
  data() {
    return {
      profitData: [], //分红情况
      org: [], //增发机构获配明细
      incr: [], //增发明细
      allot: [] //配股明细
    };
  },
  components: {},
  computed: {},
  mounted() {
    this.profit();
  },
  methods: {
    async profit() {
      const res = await profit();
      this.profitData = res.profit ? res.profit : [];
      this.org = res.org ? res.org : [];
      this.incr = res.incr ? res.incr : [];
      this.allot = res.allot ? res.allot : [];
    }
  }
};
</script>
<style lang='scss' scoped>
</style>